# dnf install tar jq socat conntrack-tools -y
# sysctl -w net.ipv4.ip_forward=1
# iptables -F
# systemctl status firewalld
# systemctl stop firewalld
# systemctl disable firewalld
# setenforce 0




export dockerproxy="dockerproxy.com"
export metrics="$dockerproxy/labring/metrics-server:v0.6.2"
export openebs="$dockerproxy/labring/openebs:v3.4.0"
export certmanager="$dockerproxy/labring/cert-manager:v1.12.3"
export k8s="$dockerproxy/labring/kubernetes:v1.27.0"
export helm="$dockerproxy/labring/helm:v3.12.3"
export network="$dockerproxy/labring/calico:v3.24.6" #"$dockerproxy/labring/cilium:v1.13.4"
export metallb="$dockerproxy/labring/metallb:v0.13.10"
export master="10.11.23.180"
export nodes="10.11.23.181"
export passwd="12345678"

# sealos gen $k8s $helm $network $metrics $openebs $certmanager --masters $master --nodes $nodes -p $passwd > Clusterfile
sealos run $k8s $helm $network $openebs $certmanager $metrics --masters $master --nodes $nodes -p $passwd


# export dockerproxy="dockerproxy.com"
# export minio="$dockerproxy/labring/minio-operator:v4.5.5"
# export metrics="$dockerproxy/labring/metrics-server:v0.6.2"
# export openebs="$dockerproxy/labring/openebs:v3.4.0"
# export certmanager="$dockerproxy/labring/cert-manager:v1.12.3"
# export ingress="$dockerproxy/labring/ingress-nginx:v1.8.0"
# # sealos run $minio  $ingress $metallb
# sealos run  $metrics $openebs  $certmanager
# export DOMAIN="lntu.io"
# sealos run --env DOMAIN=$DOMAIN --env DB_PV_SIZE=5Gi --env OSS_PV_SIZE=5Gi --env EXTERNAL_HTTP_SCHEMA=http dockerproxy.com/lafyun/laf:latest


# sealos add --nodes 192.168.64.21,192.168.64.19
# sealos add --masters 192.168.64.21,192.168.64.19

# sealos delete --nodes 192.168.64.21,192.168.64.19
# sealos delete --masters 192.168.64.21,192.168.64.19

# sealos reset


# 主机名 ip hosts